package com.share.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.order.domain.EndOrderVo;
import com.share.order.domain.OrderInfo;
import com.share.order.domain.SubmitOrderVo;

public interface IOrderInfoService extends IService<OrderInfo> {

    //获取未完成订单
    OrderInfo getNoFinishOrder(Long userId);

    OrderInfo selectOrderInfoById(Long id);

    //创建订单 返回订单id
    Long createOrder(SubmitOrderVo submitOrderVo);

    //结束订单
    void endOrder(EndOrderVo endOrderVo);
}
